package controllers
import (
	"github.com/astaxie/beego"
	"fmt"
)

type HelloController struct {
	beego.Controller
}

func (c *HelloController) Get() {
	exit:= c.Input().Get("exit")
	fmt.Println("exit   ",exit)
	if exit=="true" {
		c.Ctx.SetCookie("uname", "", -1, "/")
		c.Ctx.SetCookie("pwd", "", -1, "/")
		c.TplNames="hello.html"
	}

}